package com.jsyl.lwbk.business.service;

import com.jsyl.lwbk.business.domain.TrainPackage;
import com.jsyl.lwbk.business.dto.SaveProjectDTO;
import com.jsyl.lwbk.business.dto.TrainPackageDTO;
import com.jsyl.lwbk.common.core.domain.Ztree;

import java.util.List;

public interface TrainPackageService {
    /**
     * 分页列表
     * @return
     */
    List<TrainPackageDTO> findList(TrainPackageDTO dto);

    /**
     * 分页列表
     * @return
     */
    List<TrainPackageDTO> detailList(Long trainPackageId);

    /**
     * 获取训练包树结构
     * @param classPlanDetailId
     * @return
     */
    List<Ztree> trainPackageTree(Long classPlanDetailId);


    /**
     * 获取父级训练包
     * @return
     */
    List<TrainPackageDTO> getParentTrainPackage();

    int checkTrainNameUnique(TrainPackage trainPackage);

    /**
     * 保存训练包选择的项目
     * @param dto
     * @return
     */
    int saveProject(SaveProjectDTO dto);


    int addTrainPackage(TrainPackage trainPackage);

    int deleteById(String id);

}
